package com.zhuoyue.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author Created by mr.liang
 */
public class Log {

    public static void info(String msg){
        System.out.println(getCurrentFormatDate()+  " [INFO] : " + msg);
    }

    public static void error(String msg){
        System.err.println(getCurrentFormatDate()+  " [ERROR] : " + msg);
    }

    private static String getCurrentFormatDate(){
        return new SimpleDateFormat("yyyy-MM-dd hh:mm:ss.S").format(new Date());
    }

}
